from appium import webdriver
import time

# 连接配置信息
des = {
    "platformName": "Android",
    "platformVersion": "7.1.2",
    "deviceName": "emulator-5554",
    "appPackage": "com.android.settings",
    "appActivity": ".Settings$WifiSettingsActivity"
}
# 初始化驱动对象
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", des)
time.sleep(3)

# 脚本内启动其他app
driver.start_activity("com.tencent.wework", ".login.controller.LoginWxAuthActivity")

time.sleep(5)
driver.quit()